home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1227 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  940 b 

  1. Path: jasmine.cms.dmu.ac.uk!se4pm
  2. From: se4pm@dmu.ac.uk (Piers Myers)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Randomizer
  5. Date: 9 Jan 1996 18:02:47 GMT
  6. Organization: De Montfort University, Leicester
  7. Distribution: world
  8. Message-ID: <4cuak7$eea@macondo.dmu.ac.uk>
  9. References: <4cpe8p$6d1@darwin.nbnet.nb.ca>
  10. NNTP-Posting-Host: jasmine.cms.dmu.ac.uk
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. In article <4cpe8p$6d1@darwin.nbnet.nb.ca>, Eric Novinscak (kerning@nbnet.nb.ca) writes:
  14.  
  15. >     I got a little die rolling program and I'm trying to get it to roll a different side each time you run the program but it always ends up on the same side on the final roll. 
  16. > I'm using Borland C++ 4.5 with the randomizer function and random. Can anyone help please!!!! 
  17.  
  18. > Also anyone know of a good book on C++ for dos? One that explains everything including graphics.
  19.  
  20. > Eric
  21.  
  22. You have to initilise the seed with a different value each time using srand.
  23.  
  24. Piers
  25.